import { DELETE, GET, POST } from '../axios.config.js'

const base = window.config.ip
const projectName = '/business'

// 新增监测任务
export const saveJobApi = p => POST(`${base}${projectName}/zcJobSchedulingInfo/saveJob`, p)

// 编辑监测任务
export const editJobApi = p => POST(`${base}${projectName}/zcJobSchedulingInfo/editJob`, p)

// 获取监测任务列表
export const listJobPagesApi = p => GET(`${base}${projectName}/zcJobSchedulingInfo/listJobPages`, p)

// 获取监测任务详情
export const getJobDetailApi = p => GET(`${base}${projectName}/zcJobSchedulingInfo/getJobDetail`, p)

// 删除监测任务
export const deleteJobApi = id => DELETE(`${base}${projectName}/zcJobSchedulingInfo/deleteJob?id=${id}`)

// 获取有效判定算法列表
export const listValidAlgorithmApi = p => POST(`${base}${projectName}/zcJobSchedulingInfo/listValidAlgorithm`, p)
